import React,{Component} from 'react'
import {Text, StyleSheet, View, Image, PixelRatio, TouchableOpacity} from 'react-native'
import ViewUtil from '../../../util/ViewUtil.js'
import MinaIcon from '../../../components/MinaIcon.js'
import NavigationBar from '../../../components/NavigationBar.js'
import NavigationUtil from '../../../navigator/NavigationUtil.js'


export default class MyOrder extends Component {
  onBackPress() {
    NavigationUtil.goBack(this.props.navigation);
  }
  // 状态栏和头部
  renderNavigationBar(){
    let statusBar = {
      barStyle: 'light-content',
      backgroundColor: '#3E73FF',
    };
    let leftButton = ViewUtil.getLeftBackButton(() => this.onBackPress());
    let navigationBar = <NavigationBar
      title={'我的订单'}
      statusBar={statusBar}
      leftButton={leftButton}
      style={{backgroundColor: '#fff'}}
    />;
    return navigationBar;
  }
  render() {
    return (
      <View style={MinaStyle.minaContainer}>
        {this.renderNavigationBar()}
      </View>
    )
  }
}

const styles = StyleSheet.create({

})
